From: Aaron Schulz Date: Mon, 19 May 2014 17:12:14 +0000 (-0700) Subject: Fixed job miscounting bug when a string digit is returned X-Git-Tag: 1.31.0-rc.0~15658^2 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=8052dc9ffc4b39bfffa311adfbdcf99573aff40f;p=lhc%2Fweb%2Fwiklou.git Fixed job miscounting bug when a string digit is returned Change-Id: I857b56a6e78f715157c7f648929d6bf38eb74828 --- diff --git a/includes/jobqueue/JobQueueFederated.php b/includes/jobqueue/JobQueueFederated.php index 58d5c67664..d6f9560eda 100644 --- a/includes/jobqueue/JobQueueFederated.php +++ b/includes/jobqueue/JobQueueFederated.php @@ -195,7 +195,7 @@ class JobQueueFederated extends JobQueue { $key = $this->getCacheKey( $type ); $count = $this->cache->get( $key ); - if ( is_int( $count ) ) { + if ( $count !== false ) { return $count; }